<?php

declare(strict_types=1);

namespace App\Model;
use Hyperf\DbConnection\Model\Model;

class PlayletRanking extends Model
{
    protected ?string $table = 'playlet_ranking';

    public function playlet()
    {
        return $this->hasOne(Playlet::class, 'id', 'playlet_id')->where(['status' => Playlet::STATUS_SHOW])->select('id','is_finish','name','cover','price','introduction','pay_type','created_at');
    }
}
